package com.wzz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzz.pojo.Indent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author DarkClown
 * @date 2024-08-12 17:34
 * @project_name day0812-month
 * @parem
 **/
@Mapper
public interface IndentMapper extends BaseMapper<Indent> {
    @Select("SELECT * from indent  i where  TIMESTAMPDIFF(MINUTE,i.buy_time,CURRENT_TIME)<2")
    List<Indent> selectListIn();

    @Select("select * from indent ")
    List<Indent> selectListin2();
}
